package us.kg.kotoriforest.mybatis.mapper;

import org.apache.ibatis.annotations.Param;
import us.kg.kotoriforest.mybatis.pojo.Employee;

import java.util.List;

/**
 * 动态SQL
 *
 * @author Kotori rotroutine@163.com
 * @since 2025/1/12
 */
public interface DynamicSelectMapper {
    // 根据多个条件查询员工
    List<Employee> getEmployeesByManyConditions(Employee employee);

    // 根据eid批量删除员工
    int deleteInBatchByEid(@Param("eids") int[] eids);

    // 批量添加员工
    int addEmployeeInBatch(@Param("employees") List<Employee> employees);
}
